package com.ferryc.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ferryc.entity.ProductCode;
import com.ferryc.entity.Products;
import com.ferryc.model.ProductTotal;
import com.ferryc.service.IProductsService;
import com.ferryc.mapper.ProductsMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Ferry Chen on 2019-11-05.
 */
@Service
@Slf4j
public class ProductsServiceImpl extends ServiceImpl<ProductsMapper, Products> implements IProductsService {

    @Autowired
    private ProductsMapper productsMapper;

    @Override
    public List<Products> queryList(Products pc) {
        return productsMapper.queryList(pc);
    }


    @Override
    public List<ProductTotal> selectTotalByCode() {
        return productsMapper.selectTotalByCode();
    }
}
